package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.OrderEntity;
@MyBatisDao
public interface OrderEntityMapper extends CrudDao<OrderEntity>{
    int deleteByPrimaryKey(Integer orderId);

    int insert(OrderEntity record);

    int insertSelective(OrderEntity record);

    OrderEntity selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(OrderEntity record);

    int updateByPrimaryKeyWithBLOBs(OrderEntity record);

    int updateByPrimaryKey(OrderEntity record);
    //获取当天订单下的客户集合
    List<OrderEntity> findCustomList(OrderEntity orderEntity);
    //获取订单数据集
    List<OrderEntity> findOrderList(OrderEntity orderEntity);
    //更新平台订单数据
    int updateAllOrderStatusMTM(OrderEntity orderEntity);
    //更新平台生产中订单数据
    int updateProducingOrderStatusMTM(OrderEntity orderEntity);
    //更新订单状态
    int updateOrderStatus(OrderEntity orderEntity);
    //获取一条订单数据
    OrderEntity getOrderInfo(OrderEntity orderEntity);
    
    int insertList(List<OrderEntity> list);
    
    List<OrderEntity> findByUpdateDate(String date);
    
    int updateStatus(OrderEntity entity);
    
    int insertMTM(OrderEntity entity);
    
    //通过款式ID获取一条订单数据
    OrderEntity getByStyleId(String styleId);
    
    OrderEntity getOrderLikeOrderNoLimitOne(OrderEntity orderEntity);
    
}